public class Exercise01 {
	public static void main(String[] args) {
		int x = 5;
		int y = 5;
		if(x++==6 & ++y==6){ //逻辑与
			x = 11;
		}
		System.out.println("x =" + x + ",y = " + y);//6 6


		if(x++==6 && ++y==6){
			x = 11;
		}
		System.out.println("x = "  + x + ",y = " +y);//6 5

		if(x++==5 | ++y==5){//逻辑或
			x = 11;
		}
		System.out.println("x = "  + x + ",y = " +y);//11 6

		if(x++==5 || ++y==5){
			System.out.println("x = "  + x + ",y = " +y);//11 5
		}
	}
}